// componentinfowidget.h
#ifndef COMPONENTINFOWIDGET_H
#define COMPONENTINFOWIDGET_H

#include <QWidget>
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
#include <QTextEdit>
#include "component.h"

class ComponentInfoWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ComponentInfoWidget(QWidget *parent = nullptr);

public slots:
    void showComponentInfo(Component *component);

private:
    QFormLayout *formLayout;
    QLabel *nameLabel;
    QLineEdit *nameEdit;
    QLabel *typeLabel;
    QLineEdit *typeEdit;
    QLabel *valueLabel;
    QLineEdit *valueEdit;
    QLabel *descriptionLabel;
    QTextEdit *descriptionEdit;
    QLabel *connectionsLabel;
    QTextEdit *connectionsEdit;
};

#endif // COMPONENTINFOWIDGET_H
